feat(weight-custody-manifest): add WCM demo catalog - #61
Merged
Conversation
Relocate the Weight Custody Manifest demos into a per-product scenario folder, depending on the published PyPI package (weight-custody-manifest >=0.19.0) instead of the in-repo SDK. Mirrors the ca2a-delegation layout. Four demos: open_model_e2e (full 6-step flow on an open model), sovereign_self_custody (2-of-3 threshold release), snp_replay (offline SEV-SNP quote replay against a committed synthetic bundle), and real_open_model (downloads SmolLM2-135M and hashes real weights, run local). README adapted from the WCM tutorials. A CI job installs from PyPI and runs the three offline demos; real_open_model is excluded (network, heavy) with its extras in requirements-infer.txt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
weight-custody-manifest/scenario folder, relocating the WCM demos here now that the SDK is published on PyPI. They depend onweight-custody-manifest>=0.19.0from the index rather than an in-repo checkout, mirroring theca2a-delegation/layout.Contents
open_model_e2e.py— full six-step custody flow on an open model (mock attestation): joint manifest signing, attestation-gated release, wipe-on-lapse, license, derivative + lineage.sovereign_self_custody.py— 2-of-3 threshold split-key release (SPEC 3.5).snp_replay.py— offline SEV-SNP quote replay against a committed synthetic bundle (fixtures/snp_quote_synthetic.json).real_open_model.py— downloads SmolLM2-135M and hashes its real safetensors, with a tamper demo and optional--infer. Run-local (network, heavy); extras inrequirements-infer.txt.README.mdadapted from the WCM tutorials; setup ispip install weight-custody-manifest.CI
New
weight-custody-manifestjob installsrequirements.txtfrom PyPI and runs the three offline demos to exit 0.real_open_model.pyis deliberately excluded from CI.Verified locally in a clean venv: all three offline demos exit 0 against the published 0.19.0 package.
🤖 Generated with Claude Code